<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>孕育宝典 - 伴侣空间</title>
        <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
        <style>
            body {
                font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
                background-color: #f5f5f5;
                color: #333333;
                margin: 0;
                padding: 0;
            }
            .device-container {
                width: 390px;
                height: 844px;
                overflow: hidden;
                position: relative;
                background-color: #f5f5f5;
            }
            .status-bar {
                height: 44px;
                background-color: #ffffff;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0 20px;
                font-size: 14px;
                font-weight: 600;
            }
            .header {
                background-color: #ffffff;
                padding: 12px 16px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-bottom: 1px solid #f0f0f0;
            }
            .nav-bar {
                height: 60px;
                background-color: #ffffff;
                position: absolute;
                bottom: 0;
                width: 100%;
                display: flex;
                justify-content: space-around;
                align-items: center;
                border-top: 1px solid #f0f0f0;
            }
            .nav-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                color: #666666;
                font-size: 10px;
            }
            .nav-item.active {
                color: #ff9fb5;
            }
            .main-content {
                height: calc(844px - 44px - 60px - 56px);
                overflow-y: auto;
                padding-bottom: 20px;
            }
            .card {
                background-color: #ffffff;
                border-radius: 12px;
                margin: 12px 16px;
                padding: 16px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            }
            .card-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 16px;
            }
            .card-title {
                font-size: 16px;
                font-weight: 600;
                color: #333;
                display: flex;
                align-items: center;
            }
            .card-title i {
                margin-right: 8px;
                color: #ff9fb5;
            }
            .btn-primary {
                background-color: #ff9fb5;
                color: white;
                padding: 6px 12px;
                border-radius: 20px;
                font-size: 13px;
                font-weight: 500;
            }
            .btn-outline {
                border: 1px solid #ff9fb5;
                color: #ff9fb5;
                padding: 6px 12px;
                border-radius: 20px;
                font-size: 13px;
                font-weight: 500;
                background-color: white;
            }
            .partner-profile {
                display: flex;
                align-items: center;
                margin-top: 12px;
            }
            .partner-avatar {
                width: 60px;
                height: 60px;
                border-radius: 30px;
                background-color: #f0f0f0;
                margin-right: 16px;
                overflow: hidden;
            }
            .partner-avatar img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            .partner-info {
                flex: 1;
            }
            .partner-name {
                font-size: 16px;
                font-weight: 600;
                color: #333;
                margin-bottom: 4px;
            }
            .partner-status {
                display: inline-block;
                font-size: 12px;
                color: #ff9fb5;
                background-color: #f5e6ea;
                padding: 2px 8px;
                border-radius: 10px;
                margin-bottom: 6px;
            }
            .partner-meta {
                display: flex;
                font-size: 12px;
                color: #999;
            }
            .partner-meta div {
                margin-right: 12px;
            }
            .timeline {
                margin-top: 8px;
            }
            .timeline-item {
                position: relative;
                padding-left: 32px;
                padding-bottom: 16px;
            }
            .timeline-item:before {
                content: '';
                position: absolute;
                left: 8px;
                top: 6px;
                width: 12px;
                height: 12px;
                border-radius: 6px;
                background-color: #ff9fb5;
                z-index: 1;
            }
            .timeline-item:after {
                content: '';
                position: absolute;
                left: 13px;
                top: 18px;
                width: 2px;
                height: calc(100% - 18px);
                background-color: #f0f0f0;
            }
            .timeline-item:last-child:after {
                display: none;
            }
            .timeline-date {
                font-size: 12px;
                color: #999;
                margin-bottom: 4px;
            }
            .timeline-content {
                background-color: #f9f9f9;
                border-radius: 8px;
                padding: 12px;
                font-size: 14px;
                color: #333;
            }
            .timeline-content.highlight {
                background-color: #f5e6ea;
            }
            .share-card {
                margin-top: 4px;
                background-color: white;
                border-radius: 8px;
                padding: 10px;
                display: flex;
                align-items: center;
            }
            .share-card-icon {
                width: 40px;
                height: 40px;
                border-radius: 8px;
                background-color: #f0f0f0;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-right: 10px;
            }
            .share-card-icon i {
                color: #ff9fb5;
                font-size: 20px;
            }
            .share-card-info {
                flex: 1;
            }
            .share-card-title {
                font-size: 13px;
                color: #333;
                font-weight: 500;
                margin-bottom: 2px;
            }
            .share-card-desc {
                font-size: 12px;
                color: #999;
            }
            .tab-container {
                display: flex;
                background-color: #ffffff;
                padding: 0 16px;
                border-bottom: 1px solid #f0f0f0;
            }
            .tab {
                flex: 1;
                text-align: center;
                padding: 12px 0;
                font-size: 15px;
                color: #666;
                position: relative;
            }
            .tab.active {
                color: #ff9fb5;
                font-weight: 500;
            }
            .tab.active:after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 25%;
                width: 50%;
                height: 3px;
                background-color: #ff9fb5;
                border-radius: 2px;
            }
            .milestone-card {
                display: flex;
                align-items: center;
                background-color: #ffffff;
                border-radius: 12px;
                margin: 12px 16px;
                padding: 16px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            }
            .milestone-icon {
                width: 50px;
                height: 50px;
                border-radius: 25px;
                background-color: #f5e6ea;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-right: 16px;
            }
            .milestone-icon i {
                color: #ff9fb5;
                font-size: 22px;
            }
            .milestone-info {
                flex: 1;
            }
            .milestone-title {
                font-size: 15px;
                font-weight: 600;
                color: #333;
                margin-bottom: 4px;
            }
            .milestone-desc {
                font-size: 13px;
                color: #666;
            }
            .reminder-card {
                display: flex;
                align-items: center;
                padding: 12px 0;
                border-bottom: 1px solid #f0f0f0;
            }
            .reminder-card:last-child {
                border-bottom: none;
            }
            .reminder-icon {
                width: 40px;
                height: 40px;
                border-radius: 20px;
                background-color: #f5e6ea;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-right: 12px;
            }
            .reminder-icon i {
                color: #ff9fb5;
                font-size: 18px;
            }
            .reminder-info {
                flex: 1;
            }
            .reminder-title {
                font-size: 14px;
                font-weight: 500;
                color: #333;
                margin-bottom: 2px;
            }
            .reminder-time {
                font-size: 12px;
                color: #999;
            }
            .btn-group {
                display: flex;
                gap: 8px;
            }
            .invitation-badge {
                position: absolute;
                top: -5px;
                right: -5px;
                width: 16px;
                height: 16px;
                border-radius: 8px;
                background-color: #ff5252;
                color: white;
                font-size: 10px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .empty-state {
                text-align: center;
                padding: 40px 0;
            }
            .empty-state-icon {
                width: 80px;
                height: 80px;
                border-radius: 40px;
                background-color: #f5e6ea;
                display: flex;
                align-items: center;
                justify-content: center;
                margin: 0 auto 16px;
            }
            .empty-state-icon i {
                color: #ff9fb5;
                font-size: 36px;
            }
            .empty-state-text {
                font-size: 15px;
                color: #999;
                margin-bottom: 20px;
            }
        </style>
    </head>
    <body>
        <div class="device-container">
            <!-- iOS状态栏 -->
            <div class="status-bar">
                <span>9:41</span>
                <div class="flex items-center">
                    <i class="fas fa-signal mr-1"></i>
                    <i class="fas fa-wifi mr-1"></i>
                    <i class="fas fa-battery-full"></i>
                </div>
            </div>

            <!-- 页面头部 -->
            <div class="header">
                <h1 class="text-lg font-medium">伴侣空间</h1>
                <div class="flex items-center">
                    <div class="relative mr-4">
                        <i class="fas fa-bell text-gray-500"></i>
                        <div class="invitation-badge">1</div>
                    </div>
                    <i class="fas fa-ellipsis-vertical text-gray-500"></i>
                </div>
            </div>

            <!-- 标签切换 -->
            <div class="tab-container">
                <div class="tab active">动态</div>
                <div class="tab">里程碑</div>
                <div class="tab">提醒</div>
            </div>

            <!-- 主内容区 -->
            <div class="main-content">
                <!-- 已绑定伴侣卡片 -->
                <div class="card">
                    <div class="card-header">
                        <div class="card-title">
                            <i class="fas fa-user-friends"></i>
                            <span>伴侣关系</span>
                        </div>
                        <button class="btn-outline">查看详情</button>
                    </div>
                    <div class="partner-profile">
                        <div class="partner-avatar">
                            <img src="https://via.placeholder.com/60x60" alt="伴侣头像" />
                        </div>
                        <div class="partner-info">
                            <div class="partner-name">李先生</div>
                            <div class="partner-status">准爸爸</div>
                            <div class="partner-meta">
                                <div>绑定时间: 2023-05-10</div>
                                <div>共享数据: 23条</div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 动态时间线 -->
                <div class="card">
                    <div class="card-header">
                        <div class="card-title">
                            <i class="fas fa-clock"></i>
                            <span>近期动态</span>
                        </div>
                        <button class="btn-outline">全部</button>
                    </div>
                    <div class="timeline">
                        <div class="timeline-item">
                            <div class="timeline-date">今天 08:30</div>
                            <div class="timeline-content highlight">
                                <p>伴侣与您分享了<strong>今日基础体温记录</strong></p>
                                <div class="share-card">
                                    <div class="share-card-icon">
                                        <i class="fas fa-thermometer-half"></i>
                                    </div>
                                    <div class="share-card-info">
                                        <div class="share-card-title">基础体温记录</div>
                                        <div class="share-card-desc">今日体温：36.5°C</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="timeline-item">
                            <div class="timeline-date">昨天 19:45</div>
                            <div class="timeline-content">
                                <p>伴侣查看了您的<strong>排卵预测日历</strong></p>
                            </div>
                        </div>
                        <div class="timeline-item">
                            <div class="timeline-date">2023-06-18 10:20</div>
                            <div class="timeline-content">
                                <p>您向伴侣分享了<strong>下次产检提醒</strong></p>
                                <div class="share-card">
                                    <div class="share-card-icon">
                                        <i class="fas fa-calendar-check"></i>
                                    </div>
                                    <div class="share-card-info">
                                        <div class="share-card-title">产检提醒</div>
                                        <div class="share-card-desc">时间：2023-06-25 14:00</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 里程碑部分（隐藏状态） -->
                <div class="hidden">
                    <!-- 孕期里程碑 -->
                    <div class="milestone-card">
                        <div class="milestone-icon">
                            <i class="fas fa-baby"></i>
                        </div>
                        <div class="milestone-info">
                            <div class="milestone-title">怀孕确认</div>
                            <div class="milestone-desc">开启美好的孕育旅程，恭喜您怀孕啦！</div>
                        </div>
                    </div>

                    <div class="milestone-card">
                        <div class="milestone-icon">
                            <i class="fas fa-heartbeat"></i>
                        </div>
                        <div class="milestone-info">
                            <div class="milestone-title">胎心确认</div>
                            <div class="milestone-desc">第一次听到宝宝的心跳声，甜蜜的时刻。</div>
                        </div>
                    </div>

                    <div class="milestone-card">
                        <div class="milestone-icon">
                            <i class="fas fa-stethoscope"></i>
                        </div>
                        <div class="milestone-info">
                            <div class="milestone-title">首次产检</div>
                            <div class="milestone-desc">完成第一次产检，宝宝发育一切正常。</div>
                        </div>
                    </div>

                    <div class="milestone-card opacity-50">
                        <div class="milestone-icon">
                            <i class="fas fa-venus-mars"></i>
                        </div>
                        <div class="milestone-info">
                            <div class="milestone-title">性别揭晓</div>
                            <div class="milestone-desc">即将揭晓宝宝性别，男孩还是女孩？</div>
                        </div>
                    </div>

                    <div class="milestone-card opacity-50">
                        <div class="milestone-icon">
                            <i class="fas fa-baby-carriage"></i>
                        </div>
                        <div class="milestone-info">
                            <div class="milestone-title">宝宝出生</div>
                            <div class="milestone-desc">迎接新生命的到来，最美好的时刻。</div>
                        </div>
                    </div>
                </div>

                <!-- 提醒部分（隐藏状态） -->
                <div class="hidden">
                    <div class="card">
                        <div class="card-header">
                            <div class="card-title">
                                <i class="fas fa-bell"></i>
                                <span>共享提醒</span>
                            </div>
                            <button class="btn-outline">新增</button>
                        </div>

                        <div class="reminder-card">
                            <div class="reminder-icon">
                                <i class="fas fa-calendar-check"></i>
                            </div>
                            <div class="reminder-info">
                                <div class="reminder-title">下次产检提醒</div>
                                <div class="reminder-time">2023-06-25 14:00</div>
                            </div>
                            <div class="btn-group">
                                <button class="text-gray-500"><i class="fas fa-edit"></i></button>
                                <button class="text-gray-500"><i class="fas fa-trash"></i></button>
                            </div>
                        </div>

                        <div class="reminder-card">
                            <div class="reminder-icon">
                                <i class="fas fa-pills"></i>
                            </div>
                            <div class="reminder-info">
                                <div class="reminder-title">叶酸服用提醒</div>
                                <div class="reminder-time">每天 08:00</div>
                            </div>
                            <div class="btn-group">
                                <button class="text-gray-500"><i class="fas fa-edit"></i></button>
                                <button class="text-gray-500"><i class="fas fa-trash"></i></button>
                            </div>
                        </div>

                        <div class="reminder-card">
                            <div class="reminder-icon">
                                <i class="fas fa-thermometer-half"></i>
                            </div>
                            <div class="reminder-info">
                                <div class="reminder-title">基础体温记录提醒</div>
                                <div class="reminder-time">每天 06:30</div>
                            </div>
                            <div class="btn-group">
                                <button class="text-gray-500"><i class="fas fa-edit"></i></button>
                                <button class="text-gray-500"><i class="fas fa-trash"></i></button>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 未绑定伴侣时显示（隐藏状态） -->
                <div class="hidden">
                    <div class="empty-state">
                        <div class="empty-state-icon">
                            <i class="fas fa-user-friends"></i>
                        </div>
                        <div class="empty-state-text">您尚未绑定伴侣，绑定后可共享健康数据</div>
                        <button class="btn-primary px-8">邀请伴侣</button>
                    </div>
                </div>
            </div>

            <!-- 底部导航栏 -->
            <div class="nav-bar">
                <div class="nav-item">
                    <i class="fas fa-home text-xl mb-1"></i>
                    <span>首页</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-notes-medical text-xl mb-1"></i>
                    <span>记录</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-book-medical text-xl mb-1"></i>
                    <span>知识库</span>
                </div>
                <div class="nav-item active">
                    <i class="fas fa-user-friends text-xl mb-1"></i>
                    <span>伴侣空间</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-user text-xl mb-1"></i>
                    <span>我的</span>
                </div>
            </div>
        </div>
    </body>
</html>
